<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1" width="60%" cellspacing="0">
    <thead>
    <tr><th>姓名</th><th>生日</th><th>电话</th><th>操作</th></tr>
    </thead>

    <tbody>
    <tr th:each="obj : ${pgInfo.list}">
        <td th:text="${obj.name}"></td>
        <td th:text="${obj.birthday}"></td>
        <td th:text="${obj.phone}"></td>
        <td><a th:href="@{/link/del(id=${obj.id})}">删除</a>
            <a th:href="@{/link/findById(id=${obj.id})}">修改</a></td>
    </tr>
    </tbody>

</table>
<div>
    <a th:each="pg : ${#numbers.sequence(1,pgInfo.pages)}" style="margin-left: 10px"
       th:text="${pg}+'页'" th:href="@{/link/findAll(pageNum=${pg})}"></a>
</div>
<a href="/html/add.html">添加</a>
</body>
</html>